# !/usr/bin/env python
# encoding: utf-8


"""
  @author: gaogao
  @file: base.py
  @time: 2020/12/14 11:49
  @desc:
"""
import logging
from sqlalchemy.orm import declarative_base
from sqlalchemy.engine import create_engine
logging.basicConfig()
logging.getLogger('sqlalchemy').setLevel(logging.ERROR)


class Base:
    engine = create_engine("mysql+pymysql://root:admin@localhost:3306/macrochip?charset=utf8mb4", echo=False)
    # engine = create_engine('sqlite:///guowang.db?check_same_thread=False', echo=True)
    # engine = create_engine('sqlite:///offline.db?check_same_thread=False', echo=True)
    base = declarative_base(engine)
